package com.zhmsky.controller;

import com.zhmsky.model.ResultMap;
import com.zhmsky.service.UserService;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhmsky
 * @date 2021/12/6 10:23
 */
@RequestMapping("/guest")
@RestController
public class GuestController {

    @Autowired
    private ResultMap resultMap;

    @PostMapping("/welcome")
    public ResultMap login(){
        return resultMap.success().code(200).message("您正在访问游客页面!");
    }
}
